package com.person.mapper;

import com.person.pojo.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {
    ShoppingCart inquire(Long dishId, Long setmealId,Long userId);

    void add(ShoppingCart shoppingCart);

    void updateNumber(Long id);

    void update(@Param("dishId") Long dishId,@Param("setmealId") Long setmealId,@Param("userId") Long userId);

    void delete(@Param("dishId") Long dishId,@Param("setmealId") Long setmealId,@Param("userId") Long userId);

    List<ShoppingCart> list(Long userId);

    void deleteList(Long userId);

    List<ShoppingCart> getListByShopping(Long userId);
}
